package org.csu.mypetstore.api.service;

import org.csu.mypetstore.api.common.CommonResponse;
import org.csu.mypetstore.api.vo.CartVO;
import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.HttpSession;

public interface CartService {
//    查看购物车
CommonResponse<CartVO> viewCart(HttpSession session);
//    添加商品到购物车
CommonResponse<CartVO> addItemToCart(HttpSession session,String itemID);
//    修改商品的数量
CommonResponse<CartVO> modifyItemQuantity(String itemId,int newQuantity, HttpSession session);
//      删除商品
CommonResponse<CartVO> deleteItemFromCart(String itemId,HttpSession session);
}
